﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<% 

    string f = Request["f"]==null?"a1":Request["f"].ToString();
    string f2 = "a";
    if(f.Length>=1) f2 = f.Substring(0, 1);    
%>
    	<!--left-->
    	<div class="back_menu">
        	<h2>会员中心</h2>
            <div class="back_menu_list">
            	<ul>
                	<li>
                    	<h3 class="back_info" name="a"><b></b>个人资料</h3>
                        <ul>
                        	<li>&gt;<a href="/vipcenter/basic.html?f=a1" id="a1">基本信息</a></li>
                        	<li>&gt;<a href="/vipcenter/updatebasic.html?f=a2" id="a2">信息修改</a></li>
                        	<li>&gt;<a href="/vipcenter/changepass.html?f=a3" id="a3">密码修改</a></li>
                        </ul>
                    </li>
                	<li>
                    	<h3 class="back_fav" name="b"><b></b>收藏夹</h3>
                        <ul>
                        <% 
                            BIZ.VipCenterOper vipC = new BIZ.VipCenterOper();
                            DomainModel.UserInfo ui = (DomainModel.UserInfo)Session["user"];
                            IList li = vipC.getDirectoryList(ui.u_id.ToString());
                            foreach (Hashtable tb in li)
                            {
                        %>
                        	<li>&gt;<a href="/mylove/<%=tb["dl_id"] %>.html?f=b<%=tb["dl_id"] %>&name=<%=Server.UrlEncode(tb["dl_name"].ToString()) %>" id="b<%=tb["dl_id"] %>"><%=tb["dl_name"]%></a></li>
                            <%
                            }
                                 %>
                        </ul>
                    </li>
                	<li>
                    	<h3 class="back_mark" name="c"><b></b>自定义目录</h3>
                        <ul>
                        	<li>&gt;<a href="/vipcenter/directorylist.html?f=c1" id="c1">自定义目录管理</a></li>
                        </ul>
                    </li>
                	<li>
                    	<h3 class="back_money" name="d"><b></b>账户信息</h3>
                        <ul>
                        	<li>&gt;<a href="/vipcenter/costlist.html?f=d1" id="d1">账户信息</a></li>
                        </ul>
                    </li>
                	<li>
                    	<h3 class="back_order" name="e"><b></b>订单处理</h3>
                        <ul>
                        	<li>&gt;<a href="/vipcenter/histroylist.html?f=e1" id="e1">历史订单</a></li>
                        	<li>&gt;<a href="/vipcenter/currentlist.html?f=e2" id="e2">当前订单进度</a></li>
                        </ul>
                    </li>
                	<li>
                    	<h3 class="back_read" name="f"><b></b>阅读记录</h3>
                        <ul>
                        	<li>&gt;<a href="/vipcenter/readHistory.html?f=f1" id="f1">阅读记录</a></li>
                        </ul>
                    </li>
 
                </ul>
            </div>
            <div class="back_bottom_btn">
            	<a href="/search/libraryCar.html" title="借书车" class="btn_take_book">借书车</a>
<%--                <a href="#" title="学员俱乐部" class="btn_people">学员俱乐部</a>--%>
            </div>
        </div>
        <script type="text/javascript" src="../../Scripts/back.js" ></script>
        <script language="javascript" type="text/javascript">
            $(function () {
                $(".back_menu_list ul li h3[name=<%=f2 %>]").click();
                $("#<%=f %>").addClass("selected");
            });
        </script>